package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 礼金明细对象 gift_records
 * 
 * @author ruoyi
 * @date 2025-08-11
 */
public class GiftRecords extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键ID */
    private Integer recordsId;

    /** 关联礼簿ID（外键） */
    @Excel(name = "关联礼簿ID", readConverterExp = "外=键")
    private Integer bookId;

    private Integer bookSeq;

    /** 送礼人姓名 */
    @Excel(name = "送礼人姓名")
    private String giverName;

    /** 与主人关系 */
    @Excel(name = "与主人关系")
    private String relationship;

    /** 礼金类型 */
    @Excel(name = "礼金类型")
    private String giftType;

    /** 金额（单位：元） */
    @Excel(name = "金额", readConverterExp = "单=位：元")
    private BigDecimal amount;

    /** 礼品描述 */
    @Excel(name = "礼品描述")
    private String giftDesc;

    /** 送礼日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "送礼日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date giftDate;

    public Integer getBookSeq() {
        return bookSeq;
    }

    public void setBookSeq(Integer bookSeq) {
        this.bookSeq = bookSeq;
    }

    public Integer getRecordsId() {
        return recordsId;
    }

    public void setRecordsId(Integer recordsId) {
        this.recordsId = recordsId;
    }

    public void setBookId(Integer bookId)
    {
        this.bookId = bookId;
    }

    public Integer getBookId() 
    {
        return bookId;
    }

    public void setGiverName(String giverName) 
    {
        this.giverName = giverName;
    }

    public String getGiverName() 
    {
        return giverName;
    }

    public void setRelationship(String relationship) 
    {
        this.relationship = relationship;
    }

    public String getRelationship() 
    {
        return relationship;
    }

    public void setGiftType(String giftType) 
    {
        this.giftType = giftType;
    }

    public String getGiftType() 
    {
        return giftType;
    }

    public void setAmount(BigDecimal amount) 
    {
        this.amount = amount;
    }

    public BigDecimal getAmount() 
    {
        return amount;
    }

    public void setGiftDesc(String giftDesc) 
    {
        this.giftDesc = giftDesc;
    }

    public String getGiftDesc() 
    {
        return giftDesc;
    }

    public void setGiftDate(Date giftDate) 
    {
        this.giftDate = giftDate;
    }

    public Date getGiftDate() 
    {
        return giftDate;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordsId", getRecordsId())
            .append("bookId", getBookId())
            .append("giverName", getGiverName())
            .append("relationship", getRelationship())
            .append("giftType", getGiftType())
            .append("amount", getAmount())
            .append("giftDesc", getGiftDesc())
            .append("giftDate", getGiftDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
